<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let Max = 0 ; 
        let arr = [] ; 
        for ( let i = 100 ; i < 1000 ; i ++ ){
            for ( let j = 100 ; j < 1000 ; j ++ ){
                if (isPlan( i * j )){
                    arr.push(i * j);
                }
            }
        }
        console.log(Math.max(...arr));
        function isPlan( num ){
            let str = num.toString() ; 
            let str2 = (str.split("")).reverse().join("");
            if ( str == str2){
                return true ;
            } else {
                return false ; 
            }
        }
    </script>
</body>
</html>